<template>
  <div>
    <h1>child子组件</h1>
    <button @click="postMsg">传给我的homi</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      msg: "这是child的数据 要传到hello world兄弟去",
    };
  },
  methods: {
    postMsg() {
      this.$bus.$emit("aa", this.msg);
    },
  },
  created() {},
  mounted() {},
  components: {},
  computed: {},
  watch: {},
};
</script>

<style lang="scss" scoped></style>
